export const isMobile = () => {
	const userAgentInfo = navigator.userAgent
	const Agents = [
		'Android',
		'iPhone',
		'iPad',
		'iPod'
	]
	let flag = false
	for (let v = 0; v < Agents.length; v++) {
		if (userAgentInfo.indexOf(Agents[v]) > 0) {
			flag = true
			break
		}
	}
	return flag
}